/**
 * This class will implement the parking space Entity
 * 
 * @author Gil Levinson
 * @author Boris Fradlis
 * @author Yogev Levi
 * @author Hila Porat
 *  
 */
package vcpClasses;

import java.io.Serializable;
// Start of Parking space
@SuppressWarnings("serial")
public class ParkingSpace implements Serializable {
	private int parkingSpaceNumber;
	private String parkingSpaceStatus;
	private ParkingLocation location;
		

	// constructors ********************************************************
	
	/**
	 * constructor to build new instance of parking space with all details known
	 * @param n serial number in table Parking Space
	 * @param s status of the space
	 * @param l the location of the space
	 */
	public ParkingSpace(int n, String s, ParkingLocation l) {
		this.parkingSpaceNumber = n;
		this.parkingSpaceStatus = s;
		this.location = l;
	}
	
	/**
	 * Construct using other parking location
	 * @param l the other location
	 */
	
	public ParkingSpace(ParkingLocation l) {
		this.location = l;
	}
	
	
	// Getters and Setters *************************************************
	
	
	/**
	 * @return the parkingSpaceNumber
	 */
	public int getParkingSpaceNumber() {
		return parkingSpaceNumber;
	}


	/**
	 * @param parkingSpaceNumber the parkingSpaceNumber to set
	 */
	public void setParkingSpaceNumber(int parkingSpaceNumber) {
		this.parkingSpaceNumber = parkingSpaceNumber;
	}


	/**
	 * @return the parkingSpaceStatus
	 */
	public String getParkingSpaceStatus() {
		return parkingSpaceStatus;
	}

	/**
	 * @param parkingSpaceStatus the parkingSpaceStatus to set
	 */
	public void setParkingSpaceStatus(String parkingSpaceStatus) {
		this.parkingSpaceStatus = parkingSpaceStatus;
	}

	/**
	 * @return the location
	 */
	public ParkingLocation getLocation() {
		return location;
	}

	/**
	 * @param location the location to set
	 */
	public void setLocation(ParkingLocation location) {
		this.location = location;
	}



}
